The online racing simulator
Searching in All forums
(374 results)
Tim NL
S2 licensed
Quote from Austin Hedley :
I would like to know ,
1. what does $argv actually mean/do?
2. How could I extract just the top 3 drivers each month? (So the top 3 drivers of last month can be announced on lapper start)
3. Is there a script method to delete all rows of a certain key type from the storedvalue.dbs file?
ie. to delete all previous months entries.

Hi,

1: I dont know.
2: I dont think its posible. topuser and nearuser are hardcoded to show the top 18 and your place in the database white 8 places above and 9 places below your points.
3: You can manualy delete entries in the database by using a sqlite-manager like the free one for Firefox http://code.google.com/p/sqlite-manager/

I think its more easy to use for the key in database Year_Month_Day
Then its more to find and delete the old months in the database.

topUser( title,key,DESC,argv );

key="2010_october_01%" // Find result for all races on october 01 2010
key="2010_october%" // Find result for all races in october 2010
key="2010%" // Find result for all races in 2010
key="%" // All cumulated result
Tim NL
S2 licensed
Quote from Deejayyaj :Anyhelp?

Is there a way to grid player in manual positioning?
for example: I will use 5 grid so players in game count is 1,2,3,4,5
I want to put player 5 at 1st position then player 3 at 2nd position and so on...

what I meant about this is.. is there a ingame server "admin command key?"


Thanks in advance

Hey,
You can use in LFS /start
// fixed/finish/reverse/random: race start order
/start=finish

or you can use sometihing like " LFS Grid Order " http://gridorder.lfs.marcomark.net/
Tim NL
S2 licensed
Hi,

You can use the $flagConfirm to be sure that who won is really the winner.

1. Event OnResult now receive the confirm flags
CONF_MENTIONED 1
CONF_CONFIRMED 2
CONF_PENALTY_DT 4
CONF_PENALTY_SG 8
CONF_PENALTY_30 16
CONF_PENALTY_45 32
CONF_DID_NOT_PIT 64

Example:
If a player have a 30 second penalty the $flagConfirm must be 16 (CONF_PENALTY_30) + 2 (CONF_CONFIRMED) = 18
If a player have a 45 second penalty the $flagConfirm must be 32 (CONF_PENALTY_45) + 2 (CONF_CONFIRMED) = 34

Event OnResult( $userName,$flagConfirm ) # Player event

SWITCH( GetCurrentPlayerVar("FinishedPos") )
CASE 1:
IF( $flagConfirm == 2 || $flagConfirm == 18 || $flagConfirm == 34 )
THEN
show and give points

Tim NL
S2 licensed
Quote from Austin Hedley :

QUESTIONS:
1. Is it possible to show globalbuttons using backcalls and not have the mouse cursor visible?

2. Is it possible to use the delayedcommand method without the timing issues?

3. I have called this event from:-


But although it starts the countdown from the first racer to finish, it also starts a new countdown for anyone else finishing withing the 60 seconds. Anyway to fix that?

Sorry for my noobness, but I AM trying.

Hi,

1: When a button is clickable ( when you use -1 ) and using a backcall you always get the mouse cursor.

2: I use the delayedcommand method in mine scripts and mostly it works ok, very some time it skips a number but mine server is not the fasted one.(P4 1.5Gz 512Mb) so maybe its that why it skips sometimes a number at mine server.

3: In case of using the Event OnFinish( $userName ) you have to use
Event OnResult( $userName,$flagConfirm ) # Player event
IF(GetCurrentPlayerVar("FinishedPos")==1)
THEN
$delay=60;
DelayedCommand( $delay, start_countdown );
ENDIF
EndEvent

If you want to start the restart counter as the last driver finish the race you have to count all drivers at the start of race and when someone leave the race its number of drivers - 1 .
At the end of the race just count how many people are finisished the race and by the last start the restart counter. ( and set no mid race join )
Tim NL
S2 licensed
Hi,

You can try something like this.


$delay=30;
openGlobalButton ("test1",55,0,20,3,3,$delay,32,"^3Next Race in^2 (%cpt%) ^3second(s)" );
DelayedCommand( $delay+1, start_race );

Sub start_race()
cmdLFS( "/restart" );
EndSub

Tim NL
S2 licensed
I miss the good old time on RedLine Racing with the FOX@"old"BlackWood with Stanevo6 and Hoekie.
Everyday a full server and great races.
Tim NL
S2 licensed
Quote from Austin Hedley :Thank you sinanju, I now have points showing at the end of each race. I was so close before your help, but not close enough

Question: Should these points be accumulating with each race?
If not, any idea how to go about that?

Hey,

All points are stored in the database.
Total points = total points + race points

You can Type !point to see the top 18 in your database.
Or type !rank to see your points.
Tim NL
S2 licensed
The Jetta is crap. Is good for a taxi ride but not for racing.
The skip and Mustang are fun. The V8 ? i dont know

Tracks :
Zandvoort,LimeRock,Watkins Glenn,rd atlanta,rd america
Tim NL
S2 licensed
Hi,

Great work

I tested PRISM 0.1.9 and it worked good.
Win7 32 and PHP 5.3.3

The autoini wizzard works super. very good idea

I have some questions

1: Is it posible (in future) to start the wizzard again to make changes (to add or remove Plugins) or to add or remover a server?

2: Is it posible (in future) to start or stop PRISM to one or more servers?
example: type !stop [ID of host] to stop PRISM on that host or type !start [ID of host] to start PRISM on that host
Tim NL
S2 licensed
Quote from Bass-Driver :
StrLen = StringLength
see i learning

and i have discovered that this line caused the crashproblem

$set_car = trim( subStr( $id,11 ));
but i dont know where : trim( subStr( $id,11 )); stands for.
could u teach me what it means ??

Hi,

trim( subStr( $id,11 )); Remove the first part of a string to the 11nd character

Here some extra info about SubStr() ,Trim() and StrLen()


SubStr()
example:
$string = "example";
$example = substr( $string,0,3 ); #Start at the begining ( 0) and give the next 3 characters $example = "exa";
$example = substr( $string,4,2 ); #Start the the 4e character and give the next 2 characters $example = "pl";

StrLen()
example:
$string = "example";
$example = StrLen( $string ); #Gives the lenght of a string $example = 7;

Trim()
example:
$string = "example";
$example = trim( subStr( $string,2 ) ); #Remove the first part of a string to the 2nd character $example = "ample";

Tim NL
S2 licensed
Win 2003 sp2
Intel P4 1.60Ghz
512Mb Ram

Lapper use here 25 ~ 30 Mb on 4 Dedi's
Tim NL
S2 licensed
Quote from emit-nl :Oops! Sorry, I meant !mypb
Changed it!

Thanks for confirming, do you think we can solve this in some lpr file or is it in the LFSLapper coding itself?

Tim

I think its hard coded and im not a genius with C#
Tim NL
S2 licensed
Quote from emit-nl :Hi,

I think there is a bug in the pitwindow function.

I can set the pitwindows in !pwgui and see them in !pitwindow, but in the pitboard there is only: 'No Pitwindow'.
There has got to be information for the laps when the pitwindow starts/stops and how many stops you have made.

I tested it in LFSLapper v6.0.1.1 with default settings.

Is this a bug or is there something I'm doing wrong?

Kind Regards,
Tim

EDIT: I found another bug.
When you type '!myconfig' and go to the last page, the button to go to the next page is still there. When you click on it, the following happens (see attachment). When this happens and you click on the previous page button, nothing happens. When you click on the OK button the menu will close, but the previous button stays. When you click the next page button, the first page will open and everything is fine again.

Regards,
Tim

Hi Tim,

I have the same bug with lapper version 6.0 but its with !mypb incase of !myconfig.

When you go to the last page and click on ">" the OK button goes to above and you cant close !mypb when clicking the OK button.
When typing !mypb again and click OK the "<" stays on the screen.
Tim NL
S2 licensed
Very nice site. This can be usefull for a lot of people
Tim NL
S2 licensed
Quote from DriftMasterSmoke :Hello can anyone post showing how to edit config files in lapper to make it score higher ... i got everything working but cant find out where to up the points the defalt points seem way to low... is there a plug-in for this or just scripting the confi properly... any help would be nice thx. have nice day

Hi,
Take a look at this.
http://www.lfsforum.net/showthread.php?p=1392993#post1392993
Tim NL
S2 licensed
Quote from Moebius :Hi all,

I was wondering whether it would be possible to increase the amount of AI in LAN races.

My bro and I frequently race against each other on a LAN but we would prefer it with more AI competition.

Is it possible to increase the number somehow?

Thank you

Hi,
When its your own server , login with the admin password and type
/carsguest X
This is the max number of cars (real+ai) per guest pc

http://en.lfsmanual.net/wiki/Hosting#Host_commands
Tim NL
S2 licensed
Quote from David 09 :Hello,

Would it be possible to put 30 second penalty to those who bite the yellow line stands

Hi,
Yes this is posible with a Insim prog.

I have created this some time ago with Lapper. ( works now only for AS2 but for other tracks there need some adjustments )

You can try it on [NLR]NL Racing Fox

It will give you a DT but any other penalty is posible ( 30 - 45 - DT )
Tim NL
S2 licensed
Quote from Fire_optikz001 :i was wondering if you could add a way to check if a user uses a mouse wheel or keyboard to drive

There is.


#################
#Control Allowed#
#################
# Racer flags
# "Y" = Yes
# "N" = No
# "*"" = Yes or No
# Local variable
#-------------------------------------------------------------------
$SwapSide = "*";
$AutoGears = "*";
$Shifter = "*";
$HelpBrake = "*";
$AxisClutch = "*";
$AutoClutch = "*";
$Mouse = "[COLOR=red]N[/COLOR]";
$KbNoHelp = "[COLOR=red]N[/COLOR]";
$KbStabilised = "[COLOR=red]N[/COLOR]";
$CustomView = "*";

Event OnNotMatchFlags( $userName ) # Player event
... do some thing
EndEvent

Tim NL
S2 licensed
Quote from Krayy :CloseButtonRegex is a Player event rather than a Lapper event, so it can't be used in any event that does not pass the UserName variable.

That being said, add this to your utils.lpr to close everyones buttons:

<?php 
Sub closeButtonRegexAll
$exp )
    
$LoP GetListOfPlayers( );
    FOREACH ( 
$Pid IN $LoP )
        
closeButtonRegex ($Pid["value"], $exp);
    ENDFOREACH
EndSub
?>



Thx Krayy, works like a charm
Tim NL
S2 licensed
Quote from nssf :you the upper part the lower part not that is why i made

but my time file /track file is default but that is to hi lol i didnt have found the time yet to change all those times
================================================

Hi,
You can easy make a new one with Trackinfo maker 1.4
You can find this on the first treat in next link
http://www.lfsforum.net/showthread.php?p=1185460#post1185460

Just edit (with notepad) the ConvWr.bat and run the ConvWr.bat
You have to create first a Ident-Key at www.lfsworld.net by "My LFSW settings" tab "Pubstat access" and click "Generate Ident-Key"

Put you Ident-Key in the following line

ConvWr.exe -i your_Ident_Key -o trackInfo.cfg -c 100.5:102 -mlc 200

100.5 is % of wr time for great split times
102 is % of wr time for good split times
200 is 200% of wr laptime for max laptime
Tim NL
S2 licensed
Hi,

A little question how to use closeButtonRegex.

I have for example serval GlobalButtons with all ID's start with "abcxxx"

"abc001" , "abc002" , "abc003" and i want them to close them all.

I use now closeGlobalButton("abc001&abc002&abc003"); but its earier to close them all with closeButtonRegex.

I treid
closeButtonRegex( GetCurrentPlayerVar( "UserName" ), "abc.*" );
But this not working in a Lapper event.

How do i get closeButtonRegex working in a Lapper event ?? ( like in Event OnRaceStart( $NumP ) # Lapper event )

Thanks in advance
Tim NL
S2 licensed
Quote from mlucky :no any idea for this?

Try version 2.00 http://www.lfsforum.net/showthread.php?t=24933

The graph is auto created when the next race is started. Or start LFS start LFS Stats , play the replay and go to end of the race and play it till the replay is over.

Example:
http://isdteam.260mb.com/stats ... 8.30.47_results_race.html
Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from GobLox :I plan to hold a bit of a contest and it hinges on being able to tell if someone is using keyboard/mouse. I know I could filter based on controls with Airio but I'd like to allow all users in the race. ideally I'd like to be able to see what controls a user is on at any given moment but I'd settle for the server reporting controls on join like I've seen some do (Lapper?)

Anyone have any solutions? (I'd rather not run lapper if possible)

Hi,
You can always see what kind of controller someone is using by pressing the "N" till you see the connection box.

And with Lapper its posible to detect what kind of controller someone used and you can do something with that. ( Show a text or spectate or put in a database. )


#################
#Control Allowed#
#################
# Racer flags
# "Y" = Yes
# "N" = No
# "*"" = Yes or No
# Local variable
#-------------------------------------------------------------------
$SwapSide = "*";
$AutoGears = "*";
$Shifter = "*";
$HelpBrake = "*";
$AxisClutch = "*";
$AutoClutch = "*";
$Mouse = "*";
$KbNoHelp = "*";
$KbStabilised = "*";
$CustomView = "*";

Event OnNotMatchFlags( $userName ) # Player event
privMsg(langEngine( "%{main_nomatchflag}%" ) );
privMsg(langEngine( "%{main_yourflag}%" , GetCurrentPlayerVar("PlayerFlags") ) );
privMsg(langEngine( "%{main_yourflag}%" , GetLapperVar( "RequiredFlags" ) ) );
privMsg(langEngine( "%{main_spectated}%" ) );
cmdLFS("/spec " . GetCurrentPlayerVar("UserName") );
EndEvent

FGED GREDG RDFGDR GSFDG